package com.sc.nft.controller.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class HatchRewardsRequest {

    @ApiModelProperty(value = "熔炼id")
    @NotNull(message = "熔炼id不能为空")
    private Long id;

    @ApiModelProperty(value = "熔炼方式ID")
    @NotNull(message = "熔炼方式ID不能为空")
    private Long methodId;

    @ApiModelProperty(value = "熔炼份数")
    @NotNull(message = "熔炼份数不能为空")
    @Max(value = 21, message = "熔炼份数最大值不能超过21")
    @Min(value = 1, message = "熔炼份数最小值不能低于1")
    private Integer hatchCount;

}
